<form method="post" name="frm_SelCity" onSubmit="return false;" action="{$apm.baseurl}rstobi/rstobi">

	<!-- selectCategoryAnchor -->
	<div id="selectCategoryAnchor">
		<!-- innerBlock -->
		<div class="innerBlock01">
			<div class="innerBlock02">
			<ul>
			{foreach from=$Mapping item=v name="prefLoop"}
				<li><a href="#area{$smarty.foreach.prefLoop.iteration}">{$v.TODOUFUKEN_NAME}</a></li>
			{/foreach}
			</ul>
			</div>
		</div>
		<!-- /innerBlock -->
	</div>
	<!-- /selectCategoryAnchor -->
	<!-- selectDetailBlock02 -->
	{foreach from=$Mapping item=v name="prefLoop"}
	<div class="selectDetailBlock02" id="area{$smarty.foreach.prefLoop.iteration}">
		<p class="title">{$v.TODOUFUKEN_NAME}</p>
		<!-- innerBlock01 -->
		<div  class="innerBlock01">
			<!-- 政令指定都市 -->
			{foreach from=$v.SITEITOSI_DATA item=sitei name="siteiLoop"}
			<!-- innerBlock02 -->
			<div  class="innerBlock02">
				<p class="area">
					【{$sitei.SITEITOSI_NAME}】
				</p>
				{assign var="cntS" value=$sitei.SITEI_SIKU_DATA|@count}
				{assign var="cnt" value=$v.SHIKUCHOUSON_DATA|@count}
				{foreach from=$sitei.SITEI_SIKU_DATA item=sitei_siku name="siteiSikuLoop"}

					{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 1}
						{if $smarty.foreach.siteiSikuLoop.iteration+3 > $cntS && $cnt == 0}
						<ul class="last">
						{else}
						<ul>
						{/if}
					{/if}
						{* SelFlag == 1の場合、単一選択(radioボタン) *}
						<li>
							<input name="CityCd[]"
							       type="{if $SelFlag == 1}radio{else}checkbox{/if}"
							       id="selectCity{$sitei_siku.SHIKUCHOUSON_CD}"
							       value="{$sitei_siku.SHIKUCHOUSON_CD}"
						           {foreach from=$research_data.ReCityCd key="key" item="resiteicd" name="loopName"}
						               {if $resiteicd == $sitei_siku.SHIKUCHOUSON_CD}
						               checked
						               {/if}
						           {/foreach} />
						<a href="javascript:SelSikucyoson_Link('{$sitei_siku.SHIKUCHOUSON_CD}')">
							{$sitei_siku.SHIKUCHOUSON}({$sitei_siku.REC_CNT}件)
						</a>
						</li>
					{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 0 || $smarty.foreach.siteiSikuLoop.last}
					</ul>
					{/if}

				{/foreach}
			</div>
			<!-- /innerBlock02 -->
			{/foreach}
			<!-- /政令指定都市 -->
			<!-- innerBlock02 -->
			{assign var="cnt" value=$v.SHIKUCHOUSON_DATA|@count}
			{if $cnt != 0 }
			<div  class="innerBlock02">
				{if $v.SITEITOSI_DATA|@count > 0}
					<p class="area">
						【市部】
					</p>
				{/if}
			{foreach from=$v.SHIKUCHOUSON_DATA item=shikuchouson name="sikuLoop"}
				{if $smarty.foreach.sikuLoop.iteration % 3 == 1}
					{if $smarty.foreach.sikuLoop.iteration+3 <= $cnt}
					<ul>
					{else}
					<ul class="last">
					{/if}
				{/if}
					{* SelFlag == 1の場合、単一選択(radioボタン) *}
					<li>
						<input name="CityCd[]"
						       type="{if $SelFlag == 1}radio{else}checkbox{/if}"
						       id="selectCity{$shikuchouson.SHIKUCHOUSON_CD}"
						       value="{$shikuchouson.SHIKUCHOUSON_CD}"
						       {foreach from=$research_data.ReCityCd key="key" item="recitycd" name="loopName"}
						           {if $recitycd == $shikuchouson.SHIKUCHOUSON_CD}
						           checked
						           {/if}
						       {/foreach} />
					<a href="javascript:SelSikucyoson_Link('{$shikuchouson.SHIKUCHOUSON_CD}')">
						{$shikuchouson.SHIKUCHOUSON}({$shikuchouson.REC_CNT}件)
					</a>
					</li>
				{if $smarty.foreach.sikuLoop.iteration % 3 == 0 || $smarty.foreach.sikuLoop.last}
				</ul>
				{/if}
			{/foreach}
			</div>
			<!-- /innerBlock02 -->
			{/if}
		</div>
		<!-- /innerBlock01 -->
	</div>
	<!-- /selectSearchBlock -->
	<p class="moreBtn"><a href="javascript:SelSikucyoson('{$apm.baseurl}search/{$form_act}')"><img src="/images/search/common/btn_more_01.jpg" alt="町名を選択" width="158" height="35" class="rollImg" /></a></p>
	{/foreach}

	{if $no_left_pane == '1'}
		{$basic_kodawari_joken}
	{/if}

	<!-- searchToResult -->
	<div id="searchToResult">
		<!-- innerBlock01 -->
		<div class="innerBlock01">
			<!-- innerBlock02 -->
			<div class="innerBlock02">
				<div class="innerBlock03">
				<dl>
					<dt>検索結果表示：</dt>
					<dd>
						<ul>
						
						{*
							<li>
								<label><input name="dispCount" type="radio" id="radio" value="20" checked="checked" />
								20件ずつ</label></li>
							<li>
								<label><input type="radio" name="dispCount" id="radio2" value="40" />
								40件ずつ</label></li>
							<li class="last">
								<label><input type="radio" name="dispCount" id="radio3" value="60" />
								60件ずつ</label></li>
						*}
						
							{* 2010/12/28 10件毎表示対応 *}
							<li>
								<label><input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
								10件ずつ</label></li>
							<li>
								<label><input type="radio" name="dispCount" id="radio2" value="20" />
								20件ずつ</label></li>
							<li class="last">
								<label><input type="radio" name="dispCount" id="radio3" value="30" />
								30件ずつ</label></li>
						
						
						</ul>
					</dd>
				</dl>
				<p class="btn">
					<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onclick="SelSikucyosonKensaku('{$apm.baseurl}rstobi/rstobi')" />
				</p>
				</div>
				<!-- /innerBlock03 -->
			</div>
			<!-- /innerBlock02 -->
		</div>
		<!-- /innerBlock01 -->
	</div>
	<!-- /searchToResult -->

<div id="hiddenval">
{$hiddenTag}
</div>
</form>
